package com.tencent.wxcloudrun.vo.request.store;

import java.math.BigDecimal;
import java.util.List;

import com.tencent.wxcloudrun.dto.StoreProdAttrReqDTO;

import com.tencent.wxcloudrun.vo.BaseReqVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Author ZhaoZiYin
 * @Date 2025/4/22
 * @Description 新增商品请求入参
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "StoreProdAddReqVo", description = "新增商品请求入参")
public class StoreProdAddReqVo extends BaseReqVo {

    @ApiModelProperty("商品分类ID")
    private Long prodTypeId;

    @NotBlank
    @ApiModelProperty("商品名称")
    private String name;

    @ApiModelProperty("商品描述")
    private String content;

    @ApiModelProperty("商品图片列表")
    private String imgUrlList;

    @NotNull
    @ApiModelProperty("商品价格")
    private BigDecimal price;

    @NotNull
    @ApiModelProperty("库存总数")
    private Integer totalStock;

    @ApiModelProperty("是否多选")
    private Integer multipleFlag;

    @ApiModelProperty("是否限购")
    private Integer limitFlag;

    @ApiModelProperty("限购最小数量")
    private Integer limitMinVol;

    @ApiModelProperty("限购最大数量")
    private Integer limitMaxVol;

    @ApiModelProperty("商品属性列表")
    private List<StoreProdAttrReqDTO> prodAttrList;

}
